Problem with math using multiple variables

by: maroon_beret, 7 years ago


Can you help me correct this code?
I have to use a similar code for making some other program.
I have run this program in an online python compiler but that shows problem in the 4,5 and 6 line of the code.

m=input("Throttle % = ")
kv=2200
v=12
y=1/2*(kv*v*m/60)
u=(v*m/100)-(v*m/100*10/100)
z=1/2*(kv*u*m/60)
print(y)
print(u)
print(z)



You must be logged in to post. Please login or register an account.